package by.bucha.testproject.content.contract;

import android.net.Uri;
import android.provider.BaseColumns;

public class TaskContract {

	public static final String AUTHORITY = "by.bucha.testproject.TasksProvider";

	public TaskContract() {
	}

	public static Uri createUriWithSelection(String selection, Uri uri) {

		String stringUri = uri.toString() + "/" + selection;
		return Uri.parse(stringUri);
	}

	public static final class WorkerColumns implements BaseColumns {

		private WorkerColumns() {
		}

		public static final String SIMPLE_WORKER_TABLE_TYPE = "SimpleWorkerModel";

		public static final String LEADER_TABLE_TYPE = "LeaderModel";

		public static final String PUTH = "Worker";

		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + PUTH);

		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd."
				+ AUTHORITY + "." + PUTH;

		public static final String WORKER_ID = _ID;

		public static final String WORKER_TYPE = "workerType";

		public static final String SALARY = "salary";

		public static final String SURNAME = "surname";

		public static final String NAME = "name";

		public static final String PATRONYMIC = "patronymic";

		public static final String WORKPLACE_NUMBER = "workplaceNumber";

		public static final String LUNCH_TIME = "launchTime";

		public static final String START_TIME_RECEPTION = "startTimeReception";

		public static final String END_TIME_RECEPTION = "endTimeReception";
	}

}
